package ar.com.digitalbricks.view.imprenta.cliente.action;

import com.opensymphony.xwork2.Action;

public class EditarCliente extends ClienteAction{
	private String id;

	public String execute() throws Exception {
		this.getClienteMgr().updateCliente(this.getClienteView());
		this.getCurrentTransaction().commit();
		return Action.SUCCESS;
	}
	
	public String preparar() throws Exception {
		this.setClienteView(this.getClienteMgr().getClienteView(this.getId()));
		this.setShowContactoDiv(false);
		return Action.INPUT;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}